package org.discala.samples.simple

/**
 * @author Chris Turner
 */
trait QuoteOfTheDayServiceComponent {

  this: AnyRef{ val repository: () => QuoteRepository } =>

  val service: () => QuoteOfTheDayService

  class QuoteOfTheDayService {

    def qotd() = {
      "Today's quote: " + repository().quote
    }
  }
}
